#include<iostream>
#include<vector>
#include<list>
#include<deque>
#include<algorithm>
#include<map>
#include<string>
using namespace std;
struct display {
	
   void operator()(int i) {
      cout << i << endl;
	}
};
int main() {
	list<int> a = { 1,2,3,4,5 };
	a.push_front(6);
	cout << a.empty() << endl;


	deque<int> de = { 1,2,3,4,5 };
	cout << de[3] << endl;
	cout << de.at(2) << endl;

	for_each(de.begin(), de.end(), display());
	
}


